package com.xxbb.jdbc;

import com.xxbb.jdbc.db.DBUtil;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Program {
    public static void main(String[] args) throws SQLException {
        ResultSet re= DBUtil.query("select * from student");
        while (re.next()){
            try {
                System.out.println(re.getString("id"));
            } catch (SQLException e) {
                e.printStackTrace();
            }
        }
    }
}
